package com.hospital.pojo;

import java.util.ArrayList;
import java.util.List;

public class FybExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FybExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFybidIsNull() {
            addCriterion("fybId is null");
            return (Criteria) this;
        }

        public Criteria andFybidIsNotNull() {
            addCriterion("fybId is not null");
            return (Criteria) this;
        }

        public Criteria andFybidEqualTo(Integer value) {
            addCriterion("fybId =", value, "fybid");
            return (Criteria) this;
        }

        public Criteria andFybidNotEqualTo(Integer value) {
            addCriterion("fybId <>", value, "fybid");
            return (Criteria) this;
        }

        public Criteria andFybidGreaterThan(Integer value) {
            addCriterion("fybId >", value, "fybid");
            return (Criteria) this;
        }

        public Criteria andFybidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fybId >=", value, "fybid");
            return (Criteria) this;
        }

        public Criteria andFybidLessThan(Integer value) {
            addCriterion("fybId <", value, "fybid");
            return (Criteria) this;
        }

        public Criteria andFybidLessThanOrEqualTo(Integer value) {
            addCriterion("fybId <=", value, "fybid");
            return (Criteria) this;
        }

        public Criteria andFybidIn(List<Integer> values) {
            addCriterion("fybId in", values, "fybid");
            return (Criteria) this;
        }

        public Criteria andFybidNotIn(List<Integer> values) {
            addCriterion("fybId not in", values, "fybid");
            return (Criteria) this;
        }

        public Criteria andFybidBetween(Integer value1, Integer value2) {
            addCriterion("fybId between", value1, value2, "fybid");
            return (Criteria) this;
        }

        public Criteria andFybidNotBetween(Integer value1, Integer value2) {
            addCriterion("fybId not between", value1, value2, "fybid");
            return (Criteria) this;
        }

        public Criteria andBlhIsNull() {
            addCriterion("BLH is null");
            return (Criteria) this;
        }

        public Criteria andBlhIsNotNull() {
            addCriterion("BLH is not null");
            return (Criteria) this;
        }

        public Criteria andBlhEqualTo(Integer value) {
            addCriterion("BLH =", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhNotEqualTo(Integer value) {
            addCriterion("BLH <>", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhGreaterThan(Integer value) {
            addCriterion("BLH >", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhGreaterThanOrEqualTo(Integer value) {
            addCriterion("BLH >=", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhLessThan(Integer value) {
            addCriterion("BLH <", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhLessThanOrEqualTo(Integer value) {
            addCriterion("BLH <=", value, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhIn(List<Integer> values) {
            addCriterion("BLH in", values, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhNotIn(List<Integer> values) {
            addCriterion("BLH not in", values, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhBetween(Integer value1, Integer value2) {
            addCriterion("BLH between", value1, value2, "blh");
            return (Criteria) this;
        }

        public Criteria andBlhNotBetween(Integer value1, Integer value2) {
            addCriterion("BLH not between", value1, value2, "blh");
            return (Criteria) this;
        }

        public Criteria andFyslIsNull() {
            addCriterion("FYSL is null");
            return (Criteria) this;
        }

        public Criteria andFyslIsNotNull() {
            addCriterion("FYSL is not null");
            return (Criteria) this;
        }

        public Criteria andFyslEqualTo(Integer value) {
            addCriterion("FYSL =", value, "fysl");
            return (Criteria) this;
        }

        public Criteria andFyslNotEqualTo(Integer value) {
            addCriterion("FYSL <>", value, "fysl");
            return (Criteria) this;
        }

        public Criteria andFyslGreaterThan(Integer value) {
            addCriterion("FYSL >", value, "fysl");
            return (Criteria) this;
        }

        public Criteria andFyslGreaterThanOrEqualTo(Integer value) {
            addCriterion("FYSL >=", value, "fysl");
            return (Criteria) this;
        }

        public Criteria andFyslLessThan(Integer value) {
            addCriterion("FYSL <", value, "fysl");
            return (Criteria) this;
        }

        public Criteria andFyslLessThanOrEqualTo(Integer value) {
            addCriterion("FYSL <=", value, "fysl");
            return (Criteria) this;
        }

        public Criteria andFyslIn(List<Integer> values) {
            addCriterion("FYSL in", values, "fysl");
            return (Criteria) this;
        }

        public Criteria andFyslNotIn(List<Integer> values) {
            addCriterion("FYSL not in", values, "fysl");
            return (Criteria) this;
        }

        public Criteria andFyslBetween(Integer value1, Integer value2) {
            addCriterion("FYSL between", value1, value2, "fysl");
            return (Criteria) this;
        }

        public Criteria andFyslNotBetween(Integer value1, Integer value2) {
            addCriterion("FYSL not between", value1, value2, "fysl");
            return (Criteria) this;
        }

        public Criteria andYfslIsNull() {
            addCriterion("YFSL is null");
            return (Criteria) this;
        }

        public Criteria andYfslIsNotNull() {
            addCriterion("YFSL is not null");
            return (Criteria) this;
        }

        public Criteria andYfslEqualTo(Integer value) {
            addCriterion("YFSL =", value, "yfsl");
            return (Criteria) this;
        }

        public Criteria andYfslNotEqualTo(Integer value) {
            addCriterion("YFSL <>", value, "yfsl");
            return (Criteria) this;
        }

        public Criteria andYfslGreaterThan(Integer value) {
            addCriterion("YFSL >", value, "yfsl");
            return (Criteria) this;
        }

        public Criteria andYfslGreaterThanOrEqualTo(Integer value) {
            addCriterion("YFSL >=", value, "yfsl");
            return (Criteria) this;
        }

        public Criteria andYfslLessThan(Integer value) {
            addCriterion("YFSL <", value, "yfsl");
            return (Criteria) this;
        }

        public Criteria andYfslLessThanOrEqualTo(Integer value) {
            addCriterion("YFSL <=", value, "yfsl");
            return (Criteria) this;
        }

        public Criteria andYfslIn(List<Integer> values) {
            addCriterion("YFSL in", values, "yfsl");
            return (Criteria) this;
        }

        public Criteria andYfslNotIn(List<Integer> values) {
            addCriterion("YFSL not in", values, "yfsl");
            return (Criteria) this;
        }

        public Criteria andYfslBetween(Integer value1, Integer value2) {
            addCriterion("YFSL between", value1, value2, "yfsl");
            return (Criteria) this;
        }

        public Criteria andYfslNotBetween(Integer value1, Integer value2) {
            addCriterion("YFSL not between", value1, value2, "yfsl");
            return (Criteria) this;
        }

        public Criteria andWfslIsNull() {
            addCriterion("WFSL is null");
            return (Criteria) this;
        }

        public Criteria andWfslIsNotNull() {
            addCriterion("WFSL is not null");
            return (Criteria) this;
        }

        public Criteria andWfslEqualTo(Integer value) {
            addCriterion("WFSL =", value, "wfsl");
            return (Criteria) this;
        }

        public Criteria andWfslNotEqualTo(Integer value) {
            addCriterion("WFSL <>", value, "wfsl");
            return (Criteria) this;
        }

        public Criteria andWfslGreaterThan(Integer value) {
            addCriterion("WFSL >", value, "wfsl");
            return (Criteria) this;
        }

        public Criteria andWfslGreaterThanOrEqualTo(Integer value) {
            addCriterion("WFSL >=", value, "wfsl");
            return (Criteria) this;
        }

        public Criteria andWfslLessThan(Integer value) {
            addCriterion("WFSL <", value, "wfsl");
            return (Criteria) this;
        }

        public Criteria andWfslLessThanOrEqualTo(Integer value) {
            addCriterion("WFSL <=", value, "wfsl");
            return (Criteria) this;
        }

        public Criteria andWfslIn(List<Integer> values) {
            addCriterion("WFSL in", values, "wfsl");
            return (Criteria) this;
        }

        public Criteria andWfslNotIn(List<Integer> values) {
            addCriterion("WFSL not in", values, "wfsl");
            return (Criteria) this;
        }

        public Criteria andWfslBetween(Integer value1, Integer value2) {
            addCriterion("WFSL between", value1, value2, "wfsl");
            return (Criteria) this;
        }

        public Criteria andWfslNotBetween(Integer value1, Integer value2) {
            addCriterion("WFSL not between", value1, value2, "wfsl");
            return (Criteria) this;
        }

        public Criteria andFysjIsNull() {
            addCriterion("FYSJ is null");
            return (Criteria) this;
        }

        public Criteria andFysjIsNotNull() {
            addCriterion("FYSJ is not null");
            return (Criteria) this;
        }

        public Criteria andFysjEqualTo(String value) {
            addCriterion("FYSJ =", value, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjNotEqualTo(String value) {
            addCriterion("FYSJ <>", value, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjGreaterThan(String value) {
            addCriterion("FYSJ >", value, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjGreaterThanOrEqualTo(String value) {
            addCriterion("FYSJ >=", value, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjLessThan(String value) {
            addCriterion("FYSJ <", value, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjLessThanOrEqualTo(String value) {
            addCriterion("FYSJ <=", value, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjLike(String value) {
            addCriterion("FYSJ like", value, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjNotLike(String value) {
            addCriterion("FYSJ not like", value, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjIn(List<String> values) {
            addCriterion("FYSJ in", values, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjNotIn(List<String> values) {
            addCriterion("FYSJ not in", values, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjBetween(String value1, String value2) {
            addCriterion("FYSJ between", value1, value2, "fysj");
            return (Criteria) this;
        }

        public Criteria andFysjNotBetween(String value1, String value2) {
            addCriterion("FYSJ not between", value1, value2, "fysj");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}